home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr09 / vstsrc.zip / VST.MAK < prev    next >
Text File  |  1995-02-02  |  10KB  |  299 lines

  1. #
  2. #  %W% %E% %U%  [EXTREL_1.2]
  3. #  VersaTrack orbit calculations are based on those that appear in Dr. Manfred
  4. #  Bester's sattrack program (the Unix(tm) version, circa 1992).
  5. #  The data from which the maps where generated come from "xsat", an
  6. #  X-Windows program by David A. Curry (N9MSW).
  7. #  Site coordinates come from various sources, including a couple of
  8. #  World Almanacs, and also from both of the programs mentioned above.
  9. #  The following are authors' applicable copyright notices:
  10. #                                                                                
  11. #  Copyright (c) 1992, 1993, 1994 Manfred Bester. All Rights Reserved.        
  12. #                                                                            
  13. #  Permission to use, copy, modify, and distribute this software and its      
  14. #  documentation for educational, research and non-profit purposes, without   
  15. #  fee, and without a written agreement is hereby granted, provided that the  
  16. #  above copyright notice and the following three paragraphs appear in all    
  17. #  copies.                                                                    
  18. #                                                                               
  19. #  Permission to incorporate this software into commercial products may be    
  20. #  obtained from the author, Dr. Manfred Bester, 1636 M. L. King Jr. Way,     
  21. #  Berkeley, CA 94709, USA.                                                   
  22. #                                                                              
  23. #  IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,  
  24. #  SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF    
  25. #  THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED   
  26. #  OF THE POSSIBILITY OF SUCH DAMAGE.                                         
  27. #                                                                              
  28. #  THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT       
  29. #  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A    
  30. #  PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"       
  31. #  BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,  
  32. #  UPDATES, ENHANCEMENTS, OR MODIFICATIONS.                                   
  33. #                                                                              
  34. #                                                                              
  35. #  Copyright 1992 by David A. Curry                                            
  36. #                                                                              
  37. #  Permission to use, copy, modify, distribute, and sell this software and its 
  38. #  documentation for any purpose is hereby granted without fee, provided that  
  39. #  the above copyright notice appear in all copies and that both that copyright
  40. #  notice and this permission notice appear in supporting documentation.  The  
  41. #  author makes no representations about the suitability of this software for  
  42. #  any purpose.  It is provided "as is" without express or implied warranty.   
  43. #                                                                              
  44. #  David A. Curry, N9MSW                                                       
  45. #  Purdue University                                                           
  46. #  Engineering Computer Network                                                
  47. #  1285 Electrical Engineering Building                                        
  48. #  West Lafayette, IN 47907                                                    
  49. #  davy@ecn.purdue.edu                                                         
  50. #                                                                              
  51. #  VersaTrack Copyright (c) 1993, 1994 Siamack Navabpour. All Rights Reserved.
  52. #  Permission is hereby granted to copy, modify and distribute VersaTrack
  53. #  in whole, or in part, for educational, non-profit and non-commercial use
  54. #  only, free of charge or obligation, and without agreement, provided that
  55. #  all copyrights and restrictions noted herein are observed and followed, and
  56. #  additionally, that this and all other copyright notices listed herein
  57. #  appear unaltered in all copies and in all derived work.
  58. #  This notice shall not in any way void or supersede any of the other authors
  59. #  rights or privileges.
  60. #  VersaTrack IS PRESENTED FREE AND "AS IS", WITHOUT ANY WARRANTY OR SUPPORT.
  61. #  YOU USE IT AT YOUR OWN RISK. The author(s) shall not be liable for any
  62. #  direct, indirect, incidental, or consequential damage, loss of profits or
  63. #  other tangible or intangible losses or benefits, arising out of or related
  64. #  to its use. VersaTrack carries no warranty, explicit or implied, including
  65. #  but not limited to those of merchantablity and fitness for a particular
  66. #  purpose.
  67. #  Siamack Navabpour, 12342 Hunter's Chase Dr. Apt. 2114, Austin, TX 78729.
  68. #  sia@bga.com or sia@realtime.com.
  69. #
  70. #############################################################################
  71. #
  72. #
  73. #  Makefile for VersaTrack.
  74. #  For a full description of legal notices please see the source files.
  75. #  This makefile is intended for use with manual invocation of the nmake util.
  76. #  (as opposed to using it through WIN SDK or equivalent)
  77. #
  78. #  VALID MAKE TARGETS ARE:
  79. #   <null>      : build and leave results in current directory.
  80. #   all or test : same as <null>.
  81. #   install     : build in current directory and install in $(INSTALLDIR)
  82. #   clean       : clean up .obj's and other files that can be built from
  83. #                 sources - .map files are not deleted.
  84. #   clobber     : clean up and also remove the executables, .dll's, and .map's.
  85. #   backup      : copy all source files to floppy in A:
  86. #   zip         : archive all source files in a .zip file. Includes all the
  87. #                 makefile, resource files, icons, etc. PKZIP must be accessible
  88. #                 for this to work.
  89. #
  90. #
  91.  
  92. PROJ       = vst
  93. EXENAME    = versatrk
  94. DLLNAME    = dbread
  95. DEBUG      = 0
  96. INSTALLDIR = \vst
  97. #
  98. ## Define  CVER = -DWINNT_31   if to be run under windows nt 3.1
  99. #
  100. CVER       =
  101. MAKE = nmake -e
  102. CC   = cl
  103. CPP  = cl
  104. RC   = rc
  105. .SUFFIXES:    .dib .map
  106.  
  107. CFLAGS_D_WEXE  = -nologo -W3 -D_X86_ -D_DEBUG_ -D_WINDOWS -DWIN32 $(CVER)
  108. CFLAGS_R_WEXE  = -nologo -W3 -D_X86_ -DNDEBUG -D_WINDOWS -DWIN32 $(CVER)
  109. # can we set debugtype to coff? elf? dwarf?
  110. LFLAGS_D_WEXE  = -nologo -map -debug -debugtype:cv -subsystem:windows
  111. LFLAGS_R_WEXE  = -nologo -map -subsystem:windows
  112. LFLAGS_D_LIB   = -nologo
  113. LFLAGS_R_LIB   = -nologo
  114. LIBS_D_WEXE    = user32.lib gdi32.lib advapi32.lib wsock32.lib
  115. LIBS_R_WEXE    = user32.lib gdi32.lib advapi32.lib wsock32.lib
  116. D_RCDEFINES    = -D_DEBUG_
  117. R_RCDEFINES    = -DNDEBUG
  118. RCFLAGS        = -D_WINDOWS -DWIN32
  119. MAKEFLAGS      = L E
  120. CC_D_OPTIM     = -Ox
  121. CC_R_OPTIM     = -Ox
  122.  
  123. !if "$(DEBUG)" == "1"
  124.  
  125. OBJS_EXT       = $(OBJS1) $(OBJS_DEBUG)
  126. CFLAGS         = $(CFLAGS_D_WEXE) $(CC_D_OPTIM)
  127. CFLAGSX        = $(CFLAGS_D_WEXE)
  128. LFLAGS         = $(LFLAGS_D_WEXE)
  129. LIBS           = $(LIBS_D_WEXE)
  130. LFLAGS_LIB     = $(LFLAGS_D_LIB)
  131. RCDEFINES      = $(RCFLAGS) $(D_RCDEFINES)
  132.  
  133. !else
  134.  
  135. OBJS_EXT       = $(OBJS1)
  136. CFLAGS         = $(CFLAGS_R_WEXE) $(CC_R_OPTIM)
  137. CFLAGSX        = $(CFLAGS_R_WEXE)
  138. LFLAGS         = $(LFLAGS_R_WEXE)
  139. LIBS           = $(LIBS_R_WEXE)
  140. LFLAGS_LIB     = $(LFLAGS_R_LIB)
  141. RCDEFINES      = $(RCFLAGS) $(R_RCDEFINES)
  142.  
  143. !endif
  144.  
  145. OBJS1 = \
  146.     init.obj \
  147.     dialogs.obj \
  148.     satsite.obj \
  149.     rtd.obj \
  150.     select.obj \
  151.     compute.obj \
  152.     vstnute.obj \
  153.     vstsgp4.obj \
  154.     vstsqnt.obj \
  155.     vstdate.obj \
  156.     track.obj \
  157.     rst.obj \
  158.     util.obj \
  159.     rotator.obj \
  160.     colors.obj \
  161.     error.obj
  162.  
  163. OBJS_DEBUG = prf.obj
  164.  
  165. DEPS   =  \
  166.     vstdefs.h \
  167.     vsttype.h \
  168.     vstextrn.h \
  169.     vstdib.h
  170.  
  171. LIBS_EXT = 
  172.  
  173. MAP1 = world86.map
  174. MAP2 = world64.map
  175. MAP3 = usa86.map
  176. MAP4 = usa64.map
  177. MAPS = $(MAP1) $(MAP2) $(MAP3) $(MAP4)
  178.  
  179.  
  180. all test:    the_dll $(EXENAME).exe $(MAPS)
  181.  
  182. the_dll:
  183.     @cd lib
  184.     @$(MAKE) "DEBUG=$(DEBUG)" "CVER=$(CVER)" "INSTALLDIR=$(INSTALLDIR)"
  185.     @cd ..
  186.  
  187. #gendate.exe:    gendate.c $(DEPSS)
  188. #    $(CC) $(CFLAGS) gendate.c -o gendate.exe
  189. #   -@del gendate.obj
  190.  
  191. mapadj.exe:     mapadj.c vsttype.h
  192.     $(CC) -nologo -Ox mapadj.c
  193.     -@del mapadj.obj
  194.         
  195. vst.obj:    vst.c $(DEPS) resource.h
  196.  
  197. prf.obj:    prf.c $(DEPS)
  198.  
  199. dialogs.obj:    dialogs.c $(DEPS) resource.h
  200.  
  201. compute.obj:    compute.c $(DEPS)
  202.  
  203. vstsgp4.obj:    vstsgp4.c $(DEPS) vstprop.h
  204.  
  205. vstnute.obj:    vstnute.c $(DEPS)
  206.  
  207. vstsqnt.obj:    vstsqnt.c $(DEPS)
  208.  
  209. satsite.obj:    satsite.c $(DEPS) resource.h
  210.  
  211. select.obj:        select.c $(DEPS)
  212.  
  213. vstdate.obj:    vstdate.c $(DEPS)
  214.  
  215. rtd.obj:        rtd.c $(DEPS) resource.h
  216.  
  217. rst.obj:        rst.c $(DEPS) resource.h
  218.  
  219. util.obj:        util.c $(DEPS)
  220.  
  221. track.obj:        track.c $(DEPS)
  222.  
  223. error.obj:    error.c
  224.  
  225. rotator.obj:    rotator.c $(DEPS)
  226.     $(CC) $(CFLAGSX) -c $*.c
  227.  
  228. init.obj:    init.c $(DEPS)
  229.  
  230. colors.obj:    colors.c $(DEPS) resource.h
  231.  
  232. error.obj:    error.c
  233.  
  234. $(PROJ).res:    vst.rc resource.h
  235.     $(RC) $(RCDEFINES) -r vst.rc
  236.  
  237. $(MAPS):    mapadj.exe
  238.  
  239. .c.obj:
  240.     $(CC) $(CFLAGS) -c $*.c
  241.  
  242. .dib.map:
  243.     mapadj $*
  244.  
  245. $(EXENAME).exe:        $(PROJ).res vst.obj $(OBJS_EXT) $(LIBS_EXT)
  246.     echo >NUL @<<$(PROJ).inp
  247. vst.obj 
  248. $(OBJS_EXT)
  249. $(PROJ).res
  250. -out:$(EXENAME).exe
  251.  
  252. $(LIBS)
  253. $(LIBS_EXT)
  254. $(DEFFILE_OPTION) -implib:$(PROJ).lib
  255. <<
  256.     link $(LFLAGS) @$(PROJ).inp
  257.  
  258. clean:
  259.     -@del *.obj $(EXENAME).map *.res *.pch *.sbr *.aps *.log >NUL 2>NUL
  260.     @cd lib
  261.     @$(MAKE) clean
  262.     @cd ..
  263.  
  264. clobber:    clean
  265.     -@del $(EXENAME).exe gendate.exe mapadj.exe $(DLLNAME).dll >NUL 2>NUL
  266.     -@del $(MAPS)
  267.     @cd lib
  268.     @$(MAKE) clobber
  269.     @cd ..
  270.  
  271. install:    $(INSTALLDIR)\$(EXENAME).exe $(INSTALLDIR)\$(DLLNAME).dll \
  272.     $(INSTALLDIR)\$(MAP1) $(INSTALLDIR)\$(MAP2) $(INSTALLDIR)\$(MAP3) \
  273.     $(INSTALLDIR)\$(MAP4)
  274.     copy $(EXENAME).exe $(INSTALLDIR)\*.* /v
  275.     copy $(DLLNAME).dll  $(INSTALLDIR)\*.* /v
  276.     copy $(MAP1) $(INSTALLDIR)\*.* /v
  277.     copy $(MAP2) $(INSTALLDIR)\*.* /v
  278.     copy $(MAP3) $(INSTALLDIR)\*.* /v
  279.     copy $(MAP4) $(INSTALLDIR)\*.* /v
  280.     copy doc.txt $(INSTALLDIR)\*.* /v
  281.     copy *.dat $(INSTALLDIR)\*.* /v
  282.  
  283. backup:
  284.     @backup.bat a:
  285.  
  286. zip:
  287.     @srczip.bat
  288.  
  289. ## End of Makefile
  290.